package router

import (
	"github.com/gin-gonic/gin"
	"homework/intelnal/api"
)

//路由组

func Router(r *gin.Engine) {

	userGroup := r.Group("api")
	{
		user := userGroup.Group("user")
		{
			user.POST("register", api.Register)
			user.POST("login", api.Login)
		}
	}

}
